<?php /*a:3:{s:56:"E:\wamp64\www\tp5\miqicms\app\home\view\index\index.html";i:1667653286;s:56:"E:\wamp64\www\tp5\miqicms\app\home\view\public\base.html";i:1667708288;s:57:"E:\wamp64\www\tp5\miqicms\app\home\view\public\flink.html";i:1667611058;}*/ ?>
<!DOCTYPE html>
<html style="background-color: #f5f5f5;">
<head>
  <meta charset="utf-8" />
  <title><?php echo htmlentities($seoconfig['title']); ?></title>
  <meta content="<?php echo htmlentities($seoconfig['description']); ?>" name="description">
  <meta content="<?php echo htmlentities($seoconfig['keywords']); ?>" name="keywords">
  <meta name="renderer" content="webkit" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  <link rel="stylesheet" type="text/css" href="http://127.0.0.1:8000/static/theme/blueideal/layui/css/layui.css" />
  <link rel="stylesheet" type="text/css" href="http://127.0.0.1:8000/static/theme/blueideal/css/global.css" />
  <link rel="stylesheet" type="text/css" href="http://127.0.0.1:8000/static/theme/blueideal/css/icon.css" />

  <style>
    .header {
      border-bottom: 1px solid #404553;
      border-right: 1px solid #404553;
    }
  </style>
</head>
<body class="fly-full">
<!-- 导航开始 -->
<div class="fly-header ">
  <!-- 粒子特效 -->
  <div id="particles-js">

  </div>
  <!-- 粒子特效结束 -->
  <div class="layui-container">
    <a class="fly-logo" href="<?php echo url('index/index'); ?>"> <img src="http://127.0.0.1:8000/static/theme/blueideal/images/logo.png" alt="layui" /> </a>
    <ul class="layui-nav fly-nav layui-hide-xs">
      <li class="layui-nav-item <?php if($modulename == 'index'): ?> layui-this<?php endif; ?>"><a href="<?php echo url('index/index'); ?>" > 首页</a></li>
      <li class="layui-nav-item <?php if($modulename == 'doclist'): ?> layui-this<?php endif; ?> layui-this</if>"> <a href="<?php echo url('doc/doclist'); ?>">全部文档</a></li>
      <li class="layui-nav-item <?php if($modulename == 'category'): ?> layui-this<?php endif; ?> layui-this</if>"> <a href="<?php echo url('doc/doccate'); ?>">分类</a></li>
      <li class="layui-nav-item <?php if($modulename == 'album'): ?> layui-this<?php endif; ?> layui-this</if>"> <a href="<?php echo url('album/index'); ?>" >专辑</a></li>
      <?php if(is_array($navlist['main']) || $navlist['main'] instanceof \think\Collection || $navlist['main'] instanceof \think\Paginator): $i = 0; $__LIST__ = $navlist['main'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
        <li class="layui-nav-item"> <a href="<?php echo htmlentities($vo['link']); ?>" <?php if($vo['target'] == 1): ?> target="_blank"<?php endif; ?>><?php echo htmlentities($vo['name']); ?></a></li>
      <?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
    <ul class="layui-nav fly-nav-user">
      <!-- 未登入的状态 -->
      <?php if($visitor['id'] == ''): ?>
        <li class="layui-nav-item"> <a href="<?php echo url('user/login'); ?>">登入</a> </li>
        <li class="layui-nav-item"> <a href="<?php echo url('user/register'); ?>">注册</a> </li>
      <?php endif; ?>
      <!-- 登入后的状态 -->
      <?php if($visitor['id'] > 0): ?>
        <li class="layui-nav-item">
          <a class="fly-nav-avatar" href="<?php echo url('ucenter/index'); ?>">
            <cite class="layui-hide-xs"><?php echo htmlentities(getusername($uid)); ?></cite>
            <i class="layui-badge fly-badge-vip layui-hide-xs">积分<?php echo htmlentities(getuserscore($uid)); ?></i>
            <img src="<?php echo htmlentities(getavatar($uid)); ?>">
          </a>
          <dl class="layui-nav-child">
            <dd><a href="<?php echo url('ucenter/index'); ?>"><i class="layui-icon">&#xe65e;</i>积分明细</a></dd>
            <dd><a href="<?php echo url('ucenter/index'); ?>"><i class="layui-icon">&#xe620;</i>用户中心</a></dd>
            <dd><a href="<?php echo url('ucenter/usermail'); ?>"><i class="iconfont icon-tongzhi" style="top: 4px;"></i>我的消息</a></dd>
            <dd><a href="<?php echo url('ucenter/mydoclist'); ?>"><i class="layui-icon">&#xe68e;</i>我的文档</a></dd>
            <hr style="margin: 5px 0;">
            <dd><a href="<?php echo url('user/logout'); ?>" style="text-align: center;">退出</a></dd>
          </dl>
        </li>
      <?php endif; ?>
    </ul>
  </div>

</div>
<!-- 导航结束 -->
<script type="text/javascript" src="http://127.0.0.1:8000/static/theme/blueideal/layui/layui.js"></script>
<script type="text/javascript" src="http://127.0.0.1:8000/static/theme/blueideal/layui/particles.min.js"></script>
<script type="text/javascript" src="http://127.0.0.1:8000/static/theme/blueideal/layui/app.js"></script>

<!-- 首页导航下搜索 -->
<div class="fly-case-header">
    <form action="<?php echo url('home/search/index'); ?>" method="get" class="fly-extend-banner-search">
        <input name="lm" value="0" id="t_doc"  type="hidden">
        <div class="layui-inline">
            <input placeholder="请输入文档关键字" name="searchword" autocomplete="off" value="" class="layui-input">
        </div>
        <button class="layui-btn"><i class="layui-icon">&#xe615;</i></button>
    </form>
    <p class="fly-case-year">资料库共有<span style="color:#FFB800;">&nbsp;<?php echo htmlentities($totaldocnum); ?>&nbsp;</span>个文档</p>
</div>


<!-- 广告 -->
<div class="layui-container mb20">
  <div class="banner-wrap">
    <?php $ad = ad_store(2); ?>
    <?php echo htmlspecialchars_decode($ad); ?>
    <!--矩形广告位-->
  </div>
</div>
<!-- 广告 end-->




<!-- 首页搜索结束 -->
<div class="fly-main mtop20" >
    <!-- 幻灯片 -->
    <div class="fly-tab-border fly-case-tab">
        <div class="layui-carousel" id="slide">
            <div carousel-item="">
                <?php if(is_array($slide) || $slide instanceof \think\Collection || $slide instanceof \think\Paginator): $k = 0; $__LIST__ = $slide;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($k % 2 );++$k;?>
                <?php echo htmlentities($v['url']); ?>
                    <div><a href="<?php echo htmlentities($v['url']); ?>" target="_blank">
                        <img src="<?php echo upload_url($v['img'], 'slide'); ?>" alt="<?php echo htmlentities($v['name']); ?>" class="img-responsive itm-banner" data-adaptive-background='<?php echo htmlentities($k); ?>'></a></div>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </div>
        </div>
    </div>
    <!-- 热门专辑开始 -->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this"><a href="" class="font16">热门专辑</a></li>
            <li style="float: right;"><a href="<?php echo url('album/index'); ?>" target="_blank" >全部专辑</a></li>
        </ul>
    </div>
    <?php if(empty($tjzj) || (($tjzj instanceof \think\Collection || $tjzj instanceof \think\Paginator ) && $tjzj->isEmpty())): ?>
        <div class="fly-none">没有相关数据</div>
    <?php endif; ?>
    <ul class="fly-zj-list">
        <?php if(is_array($tjzj) || $tjzj instanceof \think\Collection || $tjzj instanceof \think\Paginator): $i = 0;$__LIST__ = is_array($tjzj) ? array_slice($tjzj,0,4, true) : $tjzj->slice(0,4, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
            <li data-id="123"> <a class="fly-zj-img" href="<?php echo url('album/zjinfo',array('id'=> $vo['id'])); ?>" target="_blank">
                <img src="<?php echo upload_url($vo['img'], 'album'); ?>" /> <cite class="layui-btn layui-btn-primary layui-btn-small">查看</cite> </a>
                <h3><a href="<?php echo url('album/zjinfo',array('id'=> $vo['id'])); ?>" target="_blank"><?php echo htmlentities($vo['title']); ?></a></h3>
                <div class="fly-zj-info">
                    <?php if(is_array($vo['zhuanji']) || $vo['zhuanji'] instanceof \think\Collection || $vo['zhuanji'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['zhuanji'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo1): $mod = ($i % 2 );++$i;?>
                        <p><a class="fly-zj-nums fly-zj-active" href="<?php echo url('doc/doccon',array('id'=>$vo1['id'])); ?>"  target="_blank" style=" padding:0 5px;">
                            <i class="ic ic-<?php echo htmlentities(strtolower($vo1['ext'])); ?>"></i><?php echo htmlentities(msubstr($vo1['title'], 16,0,true)); ?></a>
                            <span style="float: right;color: #999">
                                <i class="iconfont xico" title="人气">&#xe60b;</i><?php echo htmlentities($vo1['hits']); ?></span></p>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                </div>
            </li>
        <?php endforeach; endif; else: echo "" ;endif; ?>
        </li>

    </ul>
    <!-- 热门专辑开始结束 -->
    <!-- 最新文档开始 -->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this"><a href="" class="font16">最新上传</a></li>
            <li style="float: right;"><a href="<?php echo url('doc/doclist'); ?>" target="_blank" >全部文档</a></li>
        </ul>
    </div>
    <ul class="fly-case-list">
        <?php if(is_array($indexDocList) || $indexDocList instanceof \think\Collection || $indexDocList instanceof \think\Paginator): $i = 0; $__LIST__ = $indexDocList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
            <li >
                <a class="fly-case-img" href="<?php echo url('doc/doccon',array('id'=>$vo['id'])); ?>" target="_blank">
                    <img src="<?php echo docfile($vo['html'],$vo['imgurl']); ?>"  width="166px"/> <cite class="layui-btn layui-btn-primary layui-btn-small">查看</cite> </a>
                <h3><i class="ic ic-<?php echo htmlentities($vo['ext']); ?>"></i>
                    <a href="<?php echo url('doc/doccon',array('id'=>$vo['id'])); ?>" target="_blank"><?php echo htmlentities($vo['title']); ?></a></h3>
                <div class="fly-case-info">
                    <p class="layui-elip" style="font-size: 12px;"><span style="color: #666;"><?php echo htmlentities(fdate($vo['create_time'])); ?></span> <span style="float: right;">
                        <i class="iconfont xico" title="人气">&#xe60b;</i><?php echo htmlentities($vo['hits']); ?></span>
                    </p>
                </div>
            </li>
        <?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
    <!-- 最新文档结束 -->
    <!-- 友情链接 -->
    <!-- 友情链接 -->
<div class="fly-panel fly-link">
    <h3 class="fly-panel-title">友情链接</h3>
    <dl class="fly-panel-main">
        <?php if(empty($flink) || (($flink instanceof \think\Collection || $flink instanceof \think\Paginator ) && $flink->isEmpty())): ?>
        <div class="fly-none" style="min-height:50px;padding-top: 30px;">没有相关数据</div>
        <?php endif; if(is_array($flink) || $flink instanceof \think\Collection || $flink instanceof \think\Paginator): $i = 0; $__LIST__ = $flink;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
        <dd> <a href="<?php echo htmlentities($vo['url']); ?>" target="_blank" alt="<?php echo htmlentities($vo['name']); ?>" class="flink"><?php echo htmlentities($vo['name']); ?></a></dd>
        <?php endforeach; endif; else: echo "" ;endif; ?>
    </dl>
</div>
<!-- 友情链接结束 -->
    <!-- 友情链接结束 -->
</div>
<script>
    var ggstatus = "<?php echo config('web_config.gonggao_status'); ?>";
    if (ggstatus == 1) {
        layui.use(['form' ,'jquery'], function(){
            var form = layui.form , $ = layui.jquery ;
            layer.open({
                type: 1
                ,title: false
                ,closeBtn: false
                ,area: '300px;'
                ,shade: 0.8
                ,id: 'LAY_layuipro'
                ,btn: [ '我知道了']
                ,btnAlign: 'c'
                ,moveType: 1 //拖拽模式，0或者1
                ,content: '<?php echo config('web_config.gonggao_protocol'); ?>'
                ,success: function(layero){
                }
            });

        });
    }
</script>
<script>
    layui.use('carousel', function(){
        var carousel = layui.carousel;
        //建造实例
        carousel.render({
            elem: '#slide'
            ,width: '100%' //设置容器宽度
            ,arrow: 'always' //始终显示箭头
            ,height:'200px'
            //,anim: 'updown' //切换动画方式
        });
    });

</script>
<script>
    layui.config({
        version: "3.0.0"
        ,base: 'http://127.0.0.1:8000/static/theme/blueideal/mods/' //这里实际使用时，建议改成绝对路径
    }).extend({
        fly: 'index'
    }).use('fly');
</script>




<div class="fly-footer">
  <p>
    <?php if(is_array($navlist['bottom']) || $navlist['bottom'] instanceof \think\Collection || $navlist['bottom'] instanceof \think\Paginator): $i = 0; $__LIST__ = $navlist['bottom'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
      <a href="<?php echo htmlentities($vo['link']); ?>" alt="<?php echo htmlentities($vo['alias']); ?>" <?php if($vo['target'] > 1): ?> target="_blank"<<?php endif; ?>><?php echo htmlentities($vo['name']); ?></a>
    <?php endforeach; endif; else: echo "" ;endif; ?>
  </p>
  <p>2022 &copy; <a href="http://www.boyanglee.com/" target="_blank">迷奇出品，必属精品</a><?php echo config('web_config.site_icp'); ?> 客服电话：<?php echo config('web_config.site_tel'); ?></p> <div style="display: none;">
  <?php echo config('web_config.statistics_code'); ?>
</div>
</div>
</body>
</html>